Ext.Loader.setConfig({	
	enabled: true,
	disableCaching: false,
});
//test
Ext.application({
    name: 'AM',
    controllers: ['Contr'],
    appFolder: 'app', 
    launch: function() {
    	
        Ext.create('Ext.container.Viewport', {
        	layout: {
                type: 'border',
                padding: 2,
            },
            defaults: {
                split: true
            },
            resizable: true,
            items: [{
                region: 'north',
                xtype: 'meniu',
			    hidden : true, 
			    weight : 90
            },{
            	region: 'west',
               	width: 200,
               	xtype: 'treepane',
                hidden : true,
                weight : 90
            },{
            	region: 'north',
                collapsible: true,
                //split: true,
                id:'gr',
                height: 220,
                //minHeight: 220,
                hidden : true,
                title: 'Sumar, Grafic Anual',
                weight: 80,
                layout: {
                    type: 'border',
                    padding: 2
                },
                items: [{
                    //title: 'South Central',
                    region: 'center',
                    xtype:'grafic',
                    weight : 90
                    //minWidth: 80,
                    //html: 'Grafic'
                },{
                    region: 'west',
                    xtype:'detailpanel1',
                    width: 180,
                    split: true,
                    collapsible: true,
                    weight : 90
                    //collapseMode: 'mini',
                    //hidden : true,
                }]
            },{
                region: 'center',
                xtype: 'generalpanel',
                hidden : true,
            },{
            	region: 'east',
            	width: 220,
            	xtype: 'detailpanel',
            	collapsible: true,
            	hidden : true,
            	weight : 90
            },{
               	xtype: 'login',
            },{
               	region: 'center',
               	//width: 250,
               	xtype: 'startpanel',
            }
				/*{
					region: 'north',
					//height: 201,
				    xtype: 'meniu',
				    hidden : true,
				},{
                	region: 'center',
                    xtype: 'generalpanel',//'userlist', //generalpanel region:'south',
                    hidden : true,
                },/*{
                	region: 'south',
                    xtype: 'userlist', //generalpanel region:'south',
                    //hidden : true,
                    height: 400,
                },*//*{
                	region: 'east',
                	width: 200,
                	xtype: 'detailpanel',
                	 hidden : true,
                },{
                   	region: 'west',
                   	width: 250,
                   	xtype: 'treepane',
                    hidden : true,
                    
                },{
                   	xtype: 'login',
                },{
                   	region: 'center',
                   	//width: 250,
                   	xtype: 'startpanel',
                },*/
            ]
        });
    }
});